<%@ page language="java" import="java.util.*" pageEncoding="utf8"%>
<%@ page import="com.taobao.snowsnow.hibernate.pojo.*" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html>
  <head>
    <title>蝴蝶结参数</title>
    
	<style type="text/css">
		<!--
			.aa {
				font-family: Arial, Helvetica, sans-serif;
				font-size: 14px;
				border: 2px solid #6cf;
				border-collapse:collapse;
				width: 650px;
			}
			 .aa td {
			 	border: 1px solid #6cf;
				text-align: center;
				padding-top: 4px;
				padding-bottom: 4px;
				padding-left: 10px;
				padding-right: 10px;
			 }
		-->
	</style>
	<script src="../js/jquery-latest.js"></script>
	<script type="text/javascript">
		function deleteBowParam(bowParamId) {
			$.get('./deleteBowParam.action', { bowParamId: bowParamId }, function() {
			});
		}
	</script>

  </head>
  
  <body>
  	<h1 align='center'>蝴蝶结参数</h1>
  	
  	<table class='aa' align='center'>
  		<tr>
  			<td>部件名称</td>
  			<td>长度</td>
  		</tr>
  		<c:forEach var="bowParam" items="${bowParams}">
  			<tr>
  				<td>${bowParam.name}</td>
  				<td>${bowParam.length}</td>
  				<td><button onclick="javascript:deleteBowParam(${bowParam.id});return false;">删除</button></td>
  			</tr>
  		</c:forEach>
  		
    </table>
    <a href="./editBowParam.action?productCollectId=${productCollectId}">添加||编辑</a>
  </body>
</html>
